/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jpa.entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 *
 * @author Usuario
 */
@Entity
@Table(name = "constantes", catalog = "Sig", schema = "", uniqueConstraints = {
    @UniqueConstraint(columnNames = {"idConstantes"})})
@NamedQueries({
    @NamedQuery(name = "Constantes.findAll", query = "SELECT c FROM Constantes c"),
    @NamedQuery(name = "Constantes.findByIdConstantes", query = "SELECT c FROM Constantes c WHERE c.idConstantes = :idConstantes"),
    @NamedQuery(name = "Constantes.findByCambio", query = "SELECT c FROM Constantes c WHERE c.cambio = :cambio"),
    @NamedQuery(name = "Constantes.findByImaduni", query = "SELECT c FROM Constantes c WHERE c.imaduni = :imaduni"),
    @NamedQuery(name = "Constantes.findByIva", query = "SELECT c FROM Constantes c WHERE c.iva = :iva"),
    @NamedQuery(name = "Constantes.findByComisionML", query = "SELECT c FROM Constantes c WHERE c.comisionML = :comisionML"),
    @NamedQuery(name = "Constantes.findByComisionTarjeta", query = "SELECT c FROM Constantes c WHERE c.comisionTarjeta = :comisionTarjeta"),
    @NamedQuery(name = "Constantes.findByRecargoImp", query = "SELECT c FROM Constantes c WHERE c.recargoImp = :recargoImp"),
    @NamedQuery(name = "Constantes.findBySeguroImp", query = "SELECT c FROM Constantes c WHERE c.seguroImp = :seguroImp")})
public class Constantes implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "idConstantes", nullable = false)
    private Integer idConstantes;
    @Basic(optional = false)
    @Column(name = "cambio", nullable = false)
    private double cambio;
    @Basic(optional = false)
    @Column(name = "imaduni", nullable = false)
    private int imaduni;
    @Basic(optional = false)
    @Column(name = "iva", nullable = false)
    private int iva;
    @Basic(optional = false)
    @Column(name = "comisionML", nullable = false)
    private int comisionML;
    @Basic(optional = false)
    @Column(name = "comisionTarjeta", nullable = false)
    private int comisionTarjeta;
    @Basic(optional = false)
    @Column(name = "recargoImp", nullable = false)
    private int recargoImp;
    @Basic(optional = false)
    @Column(name = "seguroImp", nullable = false)
    private int seguroImp;

    public Constantes() {
    }

    public Constantes(Integer idConstantes) {
        this.idConstantes = idConstantes;
    }

    public Constantes(Integer idConstantes, double cambio, int imaduni, int iva, int comisionML, int comisionTarjeta, int recargoImp, int seguroImp) {
        this.idConstantes = idConstantes;
        this.cambio = cambio;
        this.imaduni = imaduni;
        this.iva = iva;
        this.comisionML = comisionML;
        this.comisionTarjeta = comisionTarjeta;
        this.recargoImp = recargoImp;
        this.seguroImp = seguroImp;
    }

    public Integer getIdConstantes() {
        return idConstantes;
    }

    public void setIdConstantes(Integer idConstantes) {
        this.idConstantes = idConstantes;
    }

    public double getCambio() {
        return cambio;
    }

    public void setCambio(double cambio) {
        this.cambio = cambio;
    }

    public int getImaduni() {
        return imaduni;
    }

    public void setImaduni(int imaduni) {
        this.imaduni = imaduni;
    }

    public int getIva() {
        return iva;
    }

    public void setIva(int iva) {
        this.iva = iva;
    }

    public int getComisionML() {
        return comisionML;
    }

    public void setComisionML(int comisionML) {
        this.comisionML = comisionML;
    }

    public int getComisionTarjeta() {
        return comisionTarjeta;
    }

    public void setComisionTarjeta(int comisionTarjeta) {
        this.comisionTarjeta = comisionTarjeta;
    }

    public int getRecargoImp() {
        return recargoImp;
    }

    public void setRecargoImp(int recargoImp) {
        this.recargoImp = recargoImp;
    }

    public int getSeguroImp() {
        return seguroImp;
    }

    public void setSeguroImp(int seguroImp) {
        this.seguroImp = seguroImp;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idConstantes != null ? idConstantes.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Constantes)) {
            return false;
        }
        Constantes other = (Constantes) object;
        if ((this.idConstantes == null && other.idConstantes != null) || (this.idConstantes != null && !this.idConstantes.equals(other.idConstantes))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "jpa.entities.Constantes[idConstantes=" + idConstantes + "]";
    }

}
